package com.ycc.springcloud;

import com.ycc.myrole.YccRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableEurekaClient
//微服务启动的时候去加载
@RibbonClient(name = "SPRING-CLOUD-PROVIDER-DEPT",configuration = YccRule.class)
public class DeptConsumer_90 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_90.class,args);
    }
}
